package main

import (
	"fmt"
	"github.com/urfave/cli/v2"
	"gitlab-cli/db"
	"gitlab-cli/issue"
	"gitlab-cli/login"
	"os"
)

func main() {
	db.InitDb()
	defer db.CloseDB()
	var app = &cli.App{
		Name:  "给 吴梦婷大哥的 关闭工具",
		Usage: "吴梦婷大哥！！！！！",
		Commands: []*cli.Command{
			login.Login,
			issue.Issue,
		},
		Version: "0.1",
	}
	if err := app.Run(os.Args); nil != err {

		fmt.Println(err)
		os.Exit(1)
	}
}
